package cn.dengta.webapp.trade.form;

import cn.dengta.webapp.base.form.BaseForm;
import cn.dengta.webapp.trade.entity.UserLevel;
import cn.dengta.webapp.user.entity.userLevel.UserLevelRule.UserLevelRuleType;
import lombok.Getter;
import lombok.Setter;

@Getter
@Setter
public class UserLevelQuery extends BaseForm<UserLevel> {

	public Long id;
	/** 用户ID */
	public Long userId;
	public UserLevelRuleType ruleType;
	/** 昵称 */
	public String userNickname;
	/** 推广员ID */
	public Long agentId;
	/** 等级 */
	public Integer level;

	public void setRuleType(Integer ruleType) {
		this.ruleType = UserLevelRuleType.of(ruleType);
	}

}
